package com.dingding.study.service.责任链模式;


public abstract class PayHandler {

    protected PayHandler next;

//    public String pay(String pay) {
//        return null;
//    }
    public abstract String pay(String pay);

    public PayHandler getNext() {
        return next;
    }

    public void setNext(PayHandler next) {
        this.next = next;
    }
}
